# Maintainer: mio <miyopan@e.email>
pkgname=gcolor3
pkgver=2.4.0
pkgrel=2
pkgdesc="gtk3 color picker"
url="https://gitlab.gnome.org/World/gcolor3"
arch="all !s390x !riscv64" # libhandy1
license="GPL-2.0-or-later"
makedepends="
	gtk+3.0-dev
	libhandy1-dev
	libportal-dev
	meson
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://gitlab.gnome.org/World/gcolor3/-/archive/v$pkgver/gcolor3-v$pkgver.tar.gz
	fix-libportal-build.patch
	"
options="!check" # no tests
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a491934d2edeaa2bca8f90e51cc6d0fee3706928ed67e092c46f60336f3ef90e247254e3b248cb537d77e38049ac1423062de0fcc34c914ccf84f9d3b5622c97  gcolor3-v2.4.0.tar.gz
aa5b5d3e47f66ef4470924b42d08bd8b9066a4bb9fcfba944b5dd6936d2eaeb5d038c415bca6c50de30e472c4c748f7ab19a10feb32ff465d2f882c5fdc2a4be  fix-libportal-build.patch
"
